<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package WordPress
 * @subpackage MIP
 * @since MIP 1
 */

get_header(); ?>
	<div id="header_inner">
		<div id="headertext">
		<h1 class="pagetitle"><?php printf( __( 'Search Results for: %s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
		</div>
	</div>
	
	<!-- BEGIN CONTENT -->
	<div id="container_content">
	<div id="padding_content">
		<div id="maincontent">
			<div id="main">
				<div id="content">
		
					<?php if ( have_posts() ) : ?>
									<?php
									/* Run the loop for the search to output the results.
									 * If you want to overload this in a child theme then include a file
									 * called loop-search.php and that will be used instead.
									 */
									 get_template_part( 'loop', 'search' );
									?>
					<?php else : ?>
									<div id="post-0" class="post no-results not-found">
										<h2 class="entry-title"><?php _e( 'Nothing Found' ); ?></h2>
										<div class="entry-content">
											<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.' ); ?></p>
											<?php get_search_form(); ?>
										</div><!-- .entry-content -->
									</div><!-- #post-0 -->
					<?php endif; ?>
		
				</div><!-- end of content -->
			</div><!-- end of main -->
			<div id="side">
				<?php get_sidebar(); ?>
			</div><!-- end of side -->
		</div><!-- end of maincontent -->
	</div>
	<div class="clr"></div>
	</div>
	<!-- END OF CONTENT -->
	
	</div><!-- end of centercolumn -->
</div><!-- end of main container -->

<?php get_footer(); ?>
